<?php
$destino = "http://api.ean.com/ean-services/ws/hotel/v3?wsdl&apiKey=t9grpd33pwudkegxpdrq6xp5";
$objClient = new SoapClient($destino, array('trace' => true,'exceptions' => 0, 'encoding' => 'UTF-8'));
$xml = '<v3:getList> 
         <HotelListRequest>
            <apiKey>t9grpd33pwudkegxpdrq6xp5</apiKey>
            <cid>55505</cid>
            <minorRev>9</minorRev> 
            <customerIpAddress></customerIpAddress>
            <customerSessionId></customerSessionId>
            <customerUserAgent></customerUserAgent>
            <locale>en_US</locale>
            <currencyCode>USD</currencyCode>
            <destinationId>6596BFE0-C9B1-4789-B7D1-9ACA0D4FEFE9</destinationId>
            <numberOfResults>10</numberOfResults>
            <arrivalDate>09/04/2013</arrivalDate>
            <departureDate>09/05/2013</departureDate>
            <RoomGroup>
               <Room>
                  <numberOfAdults>2</numberOfAdults>
               </Room>
			   <Room>
                  <numberOfAdults>2</numberOfAdults>
               </Room>
            </RoomGroup>
         </HotelListRequest>
      </v3:getList>';

$soapvar = new SoapVar($xml, XSD_ANYXML);
$objResponse = $objClient->__soapCall("getList", array($soapvar));
$response = $objClient->__getLastResponse();
echo $response;
//$xml = simplexml_load_string(htmlspecialchars_decode($response), NULL, NULL, "http://schemas.xmlsoap.org/soap/envelope/");
//$xml->registerXPathNamespace('soapenv', 'http://schemas.xmlsoap.org/soap/envelope/');
//$xml->registerXPathNamespace('ns1', 'http://v3.hotel.wsapi.ean.com/');
//echo var_dump($xml);
?>
<?php 
//$hotels = $xml->xpath('//ns1:getListResponse');
?>
<pre><?php //print_r($hotels); ?></pre>
